import java.util.Arrays;
import java.util.LinkedList;

public class test {
    public static void main(String[] args) {
        int[] arr = {1,1,1,1,1,1,1,1,1,1,4,4};
        int[] brr = {1,0,0,0,0,0,0,0,0};
        int j = Arrays.binarySearch(brr,arr[0]);
        System.out.println(j);
    }
}
